package com.bwie.service.impl;

import com.bwie.bean.Account;
import com.bwie.bean.Ledger;
import com.bwie.dao.LedgerDao;
import com.bwie.service.LedgerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class LedgerServiceImpl implements LedgerService {

    @Resource
    private LedgerDao ledgerDao;

    @Override
    public List list(Map map) {
        return ledgerDao.list(map);
    }

    @Override
    public List<Account> listacc() {
        return ledgerDao.listacc();
    }

    @Override
    public int add(Ledger ledger) {
        return ledgerDao.add(ledger);
    }
}
























